package cn.leaf.observer;

import java.util.ArrayList;
import java.util.List;

/**
*
 * description: wechat subscribe
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-07-15 09:28:29
 *
*/
public abstract class WeChatSubscribe {

    protected List<WeChatUser> users = new ArrayList<>();

    public void add(WeChatUser user) {
        users.add(user);
    }

    public void remove(WeChatUser user) {
        users.remove(user);
    }

    public abstract void notifyUsers();
}
